<template>
    <div>

        <div class="image-container" v-if="riskData">
            <div class="image-item">
                <img :src="require('@/assets/xd/new/applicationScreen32.png')" alt="Image 1">
                <div class="image-text1">{{riskData.risk||0}}</div>
            </div>
            <div class="image-item">
                <img :src="require('@/assets/xd/new/applicationScreen31.png')" alt="Image 2">
                <div class="image-text2">{{riskData.total||0}}</div>
            </div>
            <div class="image-item">
                <img :src="require('@/assets/xd/new/applicationScreen33.png')" alt="Image 3">
                <div class="image-text1">{{riskData.unrisk||0}}</div>
            </div>
        </div>
        <div class="image-container">
            <div class="image-item1">
                <img :src="require('@/assets/xd/new/applicationScreen34.png')" alt="Image 4">
                <div class="image-text">风险应用数</div>
            </div>
            <div class="image-item1" style="margin-top: 20px;">
                <img :src="require('@/assets/xd/new/applicationScreen34.png')" alt="Image 5">
                <div class="image-text">应用总数</div>
            </div>
            <div class="image-item1">
                <img :src="require('@/assets/xd/new/applicationScreen34.png')" alt="Image 6">
                <div class="image-text">安全应用数</div>
            </div>
        </div>
    </div>
</template>
<script>
import {
  getAppCheckCount,
  getAppRiskCount,
  getUserAppNum,
  getWarnList,
} from "@/api/applicationService/applicationScreen.js";
export default {
    data(){
        return {
            riskData:null
        }
    },
    mounted(){
        getAppCheckCount().then(res=>{
            this.riskData=res.data||null
        })
    },
    methods:{},
}
</script>
<style scoped>
.image-container {
    display: flex;
    align-items: center;
    justify-content: space-around;
}

.image-item {
    position: relative;
    text-align: center;
    top: 20px;
   
}
.image-item img {
    width: 90%!important;
    /* 设置图片宽度为50% */
    height: auto !important;;
    /* 保持图片的宽高比 */
}
.image-item1 img {
    width: 100%!important;
    /* 设置图片宽度为50% */
    height: auto !important;;
    /* 保持图片的宽高比 */
}
.image-item1 {
    position: relative;
    text-align: center;
    top: 30px;
}

.image-item img {
    width: 140px;
    height: auto;
    margin-top: 20px;
}
.image-item1 img {
    width: 140px;
    height: auto;
}

.image-text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    top:0;
    color: white;
    font-weight: bold;
    font-size: 16px;
    padding-top: 2px;
    margin: 0;
}
.image-text1 {
    position: absolute;
    bottom: 50px;
    left: 0;
    right: 0;
    color: white;
    font-weight: bold;
    font-size: 30px;
    padding: 5px;
    margin: 0;
}

.image-text2 {
    position: absolute;
    bottom: 60px;
    left: 0;
    right: 0;
    color: white;
    font-weight: bold;
    font-size: 35px;
    padding: 5px;
    margin: 0;
}
</style>